package com.kylin.authority.api.web.facade;

import com.damon.authority.api.dto.req.CreateResourceReq;
import com.kylin.shared.common.ResponseWrapper;
import org.springframework.http.MediaType;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 权限管理接口
 * @author Damon S.
 * @version v1.0.1
 * @date 2020年05月27日 22:45
 */
@RequestMapping(value = "/manage_v1/authority", produces = MediaType.APPLICATION_JSON_VALUE)
public interface AuthorityManageFacade {

    @PostMapping("/resources")
    ResponseWrapper<Long> createResource(
            @RequestBody @Validated CreateResourceReq createResourceReq
    );

}
